<template>
  <view class="basic-info">
    <view class="section-title">
      <view class="line"></view>
      <text>基本信息</text>
    </view>
    
    <view class="info-list">
      <view class="info-item">
        <text class="label">时间：</text>
        <text>{{lunarDate.dateStr}} 【{{lunarDate.month}}月{{lunarDate.day}}】</text>
      </view>
      
      <view class="info-item">
        <text class="label">干支：</text>
        <text>{{ganZhi.year}} {{ganZhi.month}} {{ganZhi.day}} {{ganZhi.time}}</text>
      </view>
      
      <view class="info-item">
        <text class="label">空亡：</text>
        <text>{{kongWang}}</text>
      </view>
      
      <view class="info-item">
        <text class="label">神煞：</text>
        <text>贵人:{{shenSha.guiRen}} 文昌:{{shenSha.wenChang}} 天喜:{{shenSha.tianXi}}</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'BasicInfo',
  
  props: {
    lunarDate: {
      type: Object,
      default: () => ({})
    },
    ganZhi: {
      type: Object,
      default: () => ({})
    },
    kongWang: {
      type: String,
      default: ''
    },
    shenSha: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>

<style lang="scss" scoped>
.basic-info {
  margin-bottom: 20rpx;
  
  .section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
    
    .line {
      width: 6rpx;
      height: 32rpx;
      background-color: #007AFF;
      margin-right: 10rpx;
    }
    
    text {
      font-size: 32rpx;
      font-weight: bold;
    }
  }
  
  .info-list {
    .info-item {
      display: flex;
      margin-bottom: 15rpx;
      font-size: 28rpx;
      
      .label {
        font-weight: bold;
        margin-right: 10rpx;
      }
    }
  }
}
</style>